package com.easy.merchants.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.easy.merchants.pojo.HouseFacility;
import com.easy.merchants.pojo.HouseImg;

/**
 * 房子设施服务
 *
 * @author RuoYu
 * @date 2022/12/08
 */
public interface HouseFacilityService extends IService<HouseFacility> {

    /**
     * 通过房屋id查找图片是否存在
     *
     * @param rid 房屋id
     * @return 存在为true，否则为false
     */
    public boolean selectByRid(Long rid);

    /**
     * 通过房屋id房子设施信息
     *
     * @param rid 房屋id
     * @return boolean
     */
    public HouseFacility selectHouseFacilityByRid(Long rid);

    /**
     * 更新房子设施信息
     *
     * @param houseFacility 房子设施
     * @return int
     */
    public boolean updateHouseFacilityByRid(HouseFacility houseFacility);
}
